package practice;

public class Account3 extends Account2 {
    private long timeBalance;//定期存款

    Account3(String name,String no,long balance,long timeBalance){
        super(name,no,balance);
        this.timeBalance=timeBalance;
    }
    long getTimeBalance(){
        return timeBalance;
    }
    void cancel(){
        deposit(timeBalance);
        timeBalance=0;
    }



}
